import { _decorator, Component, Node, Sprite, Prefab, instantiate, BaseNode } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('test1')
export class test1 extends Component {
	@property(Prefab)
	pre:Prefab=null
    start() {
		// let node = new Node('new')
		// node.addComponent(Sprite)

		let node = instantiate(this.pre)
		node.setParent(this.node) 
		node.setPosition(0,0,0)
    }

    update(deltaTime: number) {
        
    }
}

